.container {
  height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.navBar {
  background: white;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
  font-weight: 600;
}

.menuButton {
  color: #333 !important;
  font-size: 18px;
  padding: 0 !important;
}

.content {
  flex: 1;
  overflow-y: auto;
  background: white;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #666;
  font-size: 16px;
}

/* 动态内容样式 */
.postContent {
  padding: 16px;
  border-bottom: 8px solid #f5f5f5;
}

.postHeader {
  margin-bottom: 12px;
}

.userInfo {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.userDetails {
  flex: 1;
}

.authorName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.postTime {
  font-size: 12px;
  color: #999;
}

.postText {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 12px;
}

.postImages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.imageContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.postImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 评论区域样式 */
.commentsSection {
  background: white;
}

.commentsHeader {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.commentsHeader h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.commentsList {
  padding: 0 16px 100px 16px; /* 底部留空间给操作栏 */
}

.commentItem {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.commentItem:last-child {
  border-bottom: none;
}

.commentAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.commentContent {
  flex: 1;
  min-width: 0;
}

.commentHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.commentAuthor {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.commentTime {
  font-size: 12px;
  color: #999;
}

.commentText {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.commentActions {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.commentLikeBtn {
  color: #666 !important;
  font-size: 12px !important;
  padding: 0 !important;
  min-height: auto !important;
  background: none !important;
}

.commentLikeBtn:active {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* 空状态样式 */
.noComments {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.emptyIcon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.emptyText {
  font-size: 14px;
}

.loadMore {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

/* 底部操作栏样式 */
.bottomActions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e8e8e8;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  z-index: 100;
}

.commentInput {
  flex: 1;
  background: #f8f8f8;
  border-radius: 20px;
  padding: 8px 16px;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.textArea {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: 14px !important;
  color: #333 !important;
  resize: none !important;
  outline: none !important;
  width: 100% !important;
}

.textArea::placeholder {
  color: #999 !important;
}

.actionButtons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actionBtn {
  color: #666 !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
  min-height: auto !important;
  background: none !important;
  white-space: nowrap;
}

.actionBtn.liked {
  color: #ff4757 !important;
}

.sendBtn {
  padding: 8px 16px !important;
  border-radius: 18px !important;
  font-size: 14px !important;
  min-height: 36px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .postImages {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottomActions {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .commentInput {
    padding: 6px 12px;
    min-height: 32px;
  }
  
  .textArea {
    font-size: 13px !important;
  }
  
  .sendBtn {
    padding: 6px 12px !important;
    min-height: 32px !important;
    font-size: 13px !important;
  }
  
  .actionBtn {
    font-size: 11px !important;
    padding: 2px 6px !important;
  }
}

/* 自定义滚动条 */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.commentItem {
  animation: fadeIn 0.3s ease-out;
}

.bottomActions {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
} 